﻿<table cellspacing="0" cellpadding="0" class="cssgrid">
    <tbody>
        <tr class="category">          
            <td width="30px" align="center" class="headercart productcategory" style="border-top: 1px solid #99BBE8;">
                <span class="norB">STT</span>
            </td>
            <td width="80px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Game</span>
            </td>
            <td width="80px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Loại </span>
            </td>
            <td width="180px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Tiêu đề</span>
            </td>
            <td width="80px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Ngày sửa</span>
            </td>
             <td width="80px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Trạng thái</span>
            </td>
            <td width="90px" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
            </td>           
        </tr>
        {#foreach $T.Items as item}
        <tr>           
            <td width="30px" class="headercart">
                <span>{$T.item.RowNumber}</span>
            </td>
            <td width="80px" class="headercart">
                <span>{Pages_Help.getGameInfo($T.item.HiLoGameId).Name}</span>
            </td>
            <td width="100px" class="headercart">
                <span>
                    {#if $T.item.Type==1}Điều khoản{#/if}
                    {#if $T.item.Type==2}Trợ giúp{#/if}
                </span>
            </td>
            <td width="80px" class="headercart" style="text-align: left">
                <span>{$T.item.Title}</span>
            </td>           
            <td width="80px" class="headercart">
                <span>{COMMON.jSonDateToString($T.item.ModifiedDate,1)}</span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span>{#if $T.item.Status>0}Kích hoạt{#else}Khóa{#/if}</span>
            </td>
           
            <td width="90px" align="center" class="headercart">
                <div class="function">
                    <ul>
                        <li><a id="aContextMenu" href="javascript:;"><span style="float: left;">Chọn chức năng</span>
                            <span class="drop">
                                <img src="/images/down.gif" /></span>
                            <div class="clear">
                            </div>
                        </a>
                            <ul class="context-menu" id="ul{$T.item.Id}">                              
                                {#if ($T.Permission & 2) == 2} 
                                    <li id="liEdit">Sửa</li>
                                {#if ($T.item.Status==1)}
                                    <li id="liLock">Khóa</li>
                                    {#else}
                                    <li id="liUnlock">Kích hoạt</li>
                                    {#/if}
                                {#/if}
                                {#if ($T.Permission & 1) == 1}
                                    <li id="liDelete">Xóa</li>                                                                        
                                {#/if}
                            </ul>
                        </li>
                    </ul>
                </div>
            </td>
        </tr>
        {#/for}
    </tbody>
</table>
